package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author cici
 */
@Data
@ApiModel
public abstract class BaseOrder {

    @TableField("id")
    @ApiModelProperty(value = "订单id")
    private Integer id;

    @TableField("address")
    @ApiModelProperty(value = "收货地址")
    private String address;

    @TableField("total_money")
    @ApiModelProperty(value = "订单总额")
    private BigDecimal totalMoney;

    @TableField("num")
    @ApiModelProperty(value = "购买数量")
    private Integer num;

    @TableField("product_name")
    @ApiModelProperty(value = "商品名称")
    private String productName;

    @TableField("price")
    @ApiModelProperty(value = "单价")
    private BigDecimal price;

}
